const http = uni.$u.http
//获取机构列表
export const getjgList = (data) =>http.get('/hdMp/dept/list',{params:{parentId:100,status:'0',deptType:'jg',...data}, custom: {auth: true}})
//获取组织列表
export const getzzList = (data) =>http.get('/hdMp/dept/team',{params:{deptType:'zz',status:'0',...data},custom: {auth: true}})
//获取组织详情
export const getzzContent = (deptId) =>http.get('/hdMp/dept/'+deptId,{custom: {auth: true}})
//获取成员列表
export const getcyList = (data) =>http.get('/hdMp/dept/emp/'+data.deptId,{params:{...data},custom: {auth: true}})
//会员加入组织/dev-api/hdMp/dept/join/{deptId}
export const hyaddDept = (deptId) =>http.post('/hdMp/dept/join/'+deptId,{},{custom: {auth: true}})

//查询我的组织
export const getMyaddTeam = () =>http.get('/hdMp/wxUser/myTeam',{params:{},custom: {auth: true}})


